import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import {
  Swipe, SwipeItem, Lazyload, Badge,
  Sidebar, SidebarItem, Collapse, CollapseItem, Tab, Tabs,
  Card, Image, Tag, Button, Form, Field, CheckboxGroup, SwipeCell, Checkbox,
  Stepper, SubmitBar, Icon, AddressEdit, AddressList, Dialog,
  NoticeBar, Grid, GridItem, Popup, List, PullRefresh
} from 'vant'
import 'vant/lib/index.css'


createApp(App)
  .use(Swipe).use(SwipeItem).use(Lazyload, {loading: require('./assets/images/default.png')})
  .use(SidebarItem).use(Sidebar).use(Collapse).use(CollapseItem)
  .use(Tab).use(Tabs).use(Card).use(Image).use(Tag).use(Button)
  .use(Form).use(Field).use(CheckboxGroup).use(SwipeCell).use(Checkbox)
  .use(Stepper).use(SubmitBar).use(Icon).use(AddressEdit).use(AddressList)
  .use(Dialog).use(NoticeBar).use(Grid).use(GridItem).use(Popup)
  .use(List).use(PullRefresh)
  .use(Badge).use(store).use(router).mount('#app')
